package com.siyao.redvip.components.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

public class SearchView extends LinearLayout implements OnClickListener{
	/*
	<LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="50dp"
    android:layout_marginLeft="20dp"
    android:layout_marginRight="12dp"
    android:layout_marginTop="5dp"
    android:background="@drawable/shape_search_app_bg_yj"
    android:orientation="horizontal" >

    <!-- 输入的搜索信息 -->

    <EditText
        android:id="@+id/et_search"
        android:layout_width="0dp"
        android:layout_height="fill_parent"
        android:layout_marginLeft="10dp"
        android:layout_weight="4"
        android:background="@null"
        android:drawableLeft="@drawable/ic_search_app_left"
        android:gravity="center_vertical"
        android:hint="搜索"
        android:imeOptions="actionSearch"
        android:singleLine="true"
        android:textColor="#0e0e0e"
        android:textColorHint="#b0c6ce"
        android:textSize="17sp" />
    <!-- 清空搜索文字按钮 -->

    <LinearLayout
        android:id="@+id/layout_clear_search_text"
        android:layout_width="0dp"
        android:layout_height="fill_parent"
        android:layout_weight="0.5"
        android:orientation="horizontal"
        android:visibility="gone" >

        <Button
            android:id="@+id/btn_clear_search_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right|center_vertical"
            android:background="@drawable/selector_btn_search_clear_text_right" />
    </LinearLayout>
</LinearLayout>*/


	EditText editText;
	Button button;
	Context context;
	
	public SearchView(Context context) {
		super(context);
		this.context=context;
	}
	
	public SearchView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	
	
	
	private void init(){
		editText = new EditText(context);
		button   = new Button(context);
		
	}

	@Override
	public void onClick(View v) {
		
	}
}
